package com.sea.data.service.impl;

;
import com.sea.data.entity.SalesStock;
import com.sea.data.mapper.SalesStockMapper;
import com.sea.data.service.SalesStockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * @author 陈鸿飞
 */
@Service
public class SalesStockServiceImpl implements SalesStockService {

    @Autowired
    private SalesStockMapper salesStockMapper;

    @Override
    public Integer save(SalesStock salesStock) {
        return salesStockMapper.insert(salesStock);
    }

    @Override
    public List<SalesStock> findByCnd(SalesStock salesStock) {
        return salesStockMapper.findByCnd(salesStock);
    }

    @Override
    public Integer usave(SalesStock salesStock) {
        return salesStockMapper.update(salesStock);
    }
}
